package drds.binlog.store;

import drds.binlog.common.Authors;
import drds.binlog.common.position.Position;
import drds.common.Author;

/**
 * store空间回收机制，信息采集以及控制何时调用{@linkplain IEventStore}.cleanUtil()接口
 */
@Author(name = Authors.LI_YANG)
public interface CleanUp
{

    /**
     * 清理position之前的数据
     */
    void cleanUpUntil(Position position) throws StoreException;

    /**
     * 删除所有的数据
     */
    void cleanUp() throws StoreException;
}
